import Utils from "@/utils/utils.js"

//首页轮播
export function getBanner() {
	return new Promise((resolve, reject) => {
		Utils.baseRequest({
			url: "/mobile/getMerchantbanner",
		}).then(res => {
			resolve(res.data)
		}, err => {
			reject(err)
		})
	})
}

//查询商户列表
export function getMerchantList(pageNum, pageSize, tMerchantname) {
	return new Promise((resolve, reject) => {
		Utils.baseRequest({
			url: `mobile/getMerchantlist?pageNum=${pageNum}&pageSize=${pageSize}&tMerchantname=${tMerchantname}`,
		}).then(res => {
			resolve(res.data)
		}, err => {
			reject(err)
		})
	})
}